<?php /* Smarty version 2.6.21, created on 2012-12-03 23:52:16
         compiled from ArrangeColumnAttributes.tpl.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'strtoupper', 'ArrangeColumnAttributes.tpl.html', 64, false),array('modifier', 'escape', 'ArrangeColumnAttributes.tpl.html', 81, false),)), $this); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Insert Function creater</title>
<script type="text/javascript" src="js/ArrangeColumnAttributes.js">

</script>

</head>

<body>
<div align="center">
<form action="InfoRecompose.php" method="post" name="form1" target="_blank" id="form1">

<input name="tableSize" type="hidden" value="<?php echo $this->_tpl_vars['tableSize']; ?>
" />
<?php $_from = $this->_tpl_vars['tables']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['ta'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['ta']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['tab']):
        $this->_foreach['ta']['iteration']++;
?>
<hr />

<table width="100%" border="1">
  <tr>
    <td width="50%" align="right">Table Name:<span class="sp"><?php echo $this->_tpl_vars['tab']->tableName; ?>
</span></td>
    <td width="50%" align="left">Alias Name:<span class="sp"><?php echo $this->_tpl_vars['tab']->aliasName; ?>
</span></td>
    </tr>
</table>

  <input name="tableName<?php echo ($this->_foreach['ta']['iteration']-1); ?>
" type="hidden" value="<?php echo $this->_tpl_vars['tab']->tableName; ?>
" />
  <input name="aliasName<?php echo ($this->_foreach['ta']['iteration']-1); ?>
" type="hidden" value="<?php echo $this->_tpl_vars['tab']->aliasName; ?>
" />
  <input name="columnSize<?php echo ($this->_foreach['ta']['iteration']-1); ?>
" type="hidden" value="<?php echo $this->_tpl_vars['tab']->columnSize; ?>
" />
 
  

<table  border="1" width="100%">
  <tr align="center">
    <td width="100" align="center">Field</td>
    <td width="100" align="center">Type</td>
    <td width="100" align="center">Null</td>
    <td width="100" align="center">Key</td>
    <td width="100" align="center">attribute name</td>
    <td width="100" align="center">Extra</td>
    <td width="100" align="center">Need Load</td>
    </tr>
  
  <?php $_from = $this->_tpl_vars['tab']->data; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['foo'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['foo']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['oneFild']):
        $this->_foreach['foo']['iteration']++;
?>
  <input name="extra<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" type="hidden" value="<?php echo $this->_tpl_vars['oneFild']->Extra; ?>
" />
  <input name="newType<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" type="hidden" value="<?php echo $this->_tpl_vars['oneFild']->newType; ?>
" />
  <input name="newTypeSize<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" type="hidden" value="<?php echo $this->_tpl_vars['oneFild']->newTypeSize; ?>
" />
   <input name="field<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" type="hidden" value="<?php echo $this->_tpl_vars['oneFild']->newField; ?>
" />
  <tr bgcolor="<?php if (( ($this->_foreach['foo']['iteration']-1) % 2 == 0 )): ?>#99FF00 <?php else: ?>#CC99FF<?php endif; ?>">
    <td>&nbsp;<?php echo $this->_tpl_vars['oneFild']->Field; ?>
</td>
    <td>&nbsp;<?php echo $this->_tpl_vars['oneFild']->newType; ?>
:<?php echo $this->_tpl_vars['oneFild']->newTypeSize; ?>
</td>
    <td>&nbsp;<?php echo $this->_tpl_vars['oneFild']->Null; ?>
</td>
    <td>&nbsp;<?php echo $this->_tpl_vars['oneFild']->Key; ?>
</td>
    <td>&nbsp;
      <input name="attribute<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" type="text" value="<?php echo $this->_tpl_vars['oneFild']->attribute; ?>
"/></td>
    <td>&nbsp;<?php echo $this->_tpl_vars['oneFild']->Extra; ?>
</td>
    <td><label>
      <input type="checkbox" name="need<?php echo ($this->_foreach['ta']['iteration']-1); ?>
_<?php echo ($this->_foreach['foo']['iteration']-1); ?>
" value='<?php echo $this->_tpl_vars['oneFild']->attribute; ?>
' id='need<?php echo ($this->_foreach['foo']['iteration']-1); ?>
' checked="checked"  />
    </label></td>   
    </tr>
  <?php endforeach; endif; unset($_from); ?>
</table>
<br />
Defined Table Name:<input name="definedTableName<?php echo ($this->_foreach['ta']['iteration']-1); ?>
" type="text" value="_<?php echo ((is_array($_tmp=$this->_tpl_vars['tab']->tableName)) ? $this->_run_mod_handler('strtoupper', true, $_tmp) : strtoupper($_tmp)); ?>
_TABLE_NAME" size="40" />
<?php endforeach; endif; unset($_from); ?>




  <label>
    Class Name:<input name="className"  size="34" type="text" id="className" value="DataClass<?php $_from = $this->_tpl_vars['tables']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }$this->_foreach['ta'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['ta']['total'] > 0):
    foreach ($_from as $this->_tpl_vars['tab']):
        $this->_foreach['ta']['iteration']++;
?>_<?php if ($this->_tpl_vars['tab']->aliasName != ""): ?><?php echo $this->_tpl_vars['tab']->aliasName; ?>
<?php else: ?><?php echo $this->_tpl_vars['tab']->tableName; ?>
<?php endif; ?><?php endforeach; endif; unset($_from); ?>" />
  </label>
  


  <label>DB Class Path:
    <input name="dbClassPath" type="text" id="DB Class Path:" value="__PROJECT_ROOT . &quot;/configs/Mysql.class.php&quot;" size="90" />
  </label>
Sql part:
  <label>
      <input name="joinSql" type="text" id="joinSql" value="<?php echo ((is_array($_tmp=$this->_tpl_vars['fromStr'])) ? $this->_run_mod_handler('escape', true, $_tmp) : smarty_modifier_escape($_tmp)); ?>
" size="170" />
    
  </label>

<input name="" type="submit" value="Submit" />
</form>
</div>
<br />
<br /></body>
</html>